﻿
namespace DWLib
{
    /// <summary>
    /// This class ensures the value is always 2 numbers on the display.
    /// </summary>
    internal class DoubleDigit : Digit
    {
        public DoubleDigit(int min, int max) :
            base(min, max)
        {
            // do something...
        }

        /// <summary>
        /// Convert digits to String
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            return Value.ToString("D2");
        }
    }
}
